package cn.gok.dao;

import cn.gok.entity.Course;
import cn.gok.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    //学生登录
    Student selectByName(@Param("student_name") String studentName,@Param("password") String password);

    List<Course> selectByClass(@Param("id") Integer teacherId);

    List<Course> selectStudentClass();
}